var mongoose = require('mongoose'),
    Schema = mongoose.Schema,
    Curso = require('./../classes/curso').CursoSchema;

var Disciplina = new Schema({
    nome: String,
    carga: String,
    curso: [Curso]
});

mongoose.model('Disciplina', Disciplina);

module.exports.DisciplinaSchema = Disciplina;
module.exports.Disciplina = mongoose.model('Disciplina');
